package com.giahoang.core.dao.impl;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.giahoang.core.dao.AbstractJpaDao;
import com.giahoang.core.dao.IntroductionDao;
import com.giahoang.core.domain.Introduction;

@Repository
@Transactional
public class IntroductionDaoImpl extends AbstractJpaDao<Introduction> implements IntroductionDao {
    
    private static final Logger logger=LoggerFactory.getLogger(IntroductionDao.class);
    
    public IntroductionDaoImpl()
    {
        logger.debug("abcdef hhhhhh jjjj");
        this.setClazz(Introduction.class);
    }

    public long count() {
        return entityManager.createQuery("SELECT COUNT(*) FROM introduction",Long.class).getSingleResult();
    }

    public List<Introduction> findAll(int firstResult, int maxResults,
            String orderField, String orderDirection) {
        // TODO Auto-generated method stub
        return null;
    }

    public List<Introduction> findByIds(List<Long> ids) {
        // TODO Auto-generated method stub
        return null;
    }

    public List<Introduction> findByName(String name) {
        // TODO Auto-generated method stub
        return null;
    }
    
}
